package org.springframework.samples.mvc.basic.tipProizvodenPogon;

import org.springframework.samples.mvc.basic.business.Transformer;

import com.proba.annotations.pojo.TipProizvodenPogon;

public class TipProizvodenPogonTransformer implements
		Transformer<TipProizvodenPogon, TipProizvodenPogonView> {

	@Override
	public TipProizvodenPogonView transform(TipProizvodenPogon entity) {
		TipProizvodenPogonView view = new TipProizvodenPogonView();
		view.setId(entity.getId());
		view.setTipProizvodenPogon(entity.getTipProizvodenPogon());
		return view;
	}

	@Override
	public TipProizvodenPogon transform(TipProizvodenPogonView view) {
		TipProizvodenPogon entity = new TipProizvodenPogon();
		entity.setId(view.getId());
		entity.setTipProizvodenPogon(view.getTipProizvodenPogon());
		return entity;
	}

}
